/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.framework.encryption;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * The Class MD5Util.
 *
 * @author Xi Wei
 */
public class MD5Util {

	/**
	 * Pwd encrypt.
	 *
	 * @param str the str
	 * @return the string
	 */
	public static String pwdEncrypt(String str) {
		return DigestUtils.md5Hex(str);
	}
	
	/**
	 * The main method.
	 *
	 * @param args the arguments
	 */
	public static void main(String[] args) {
		System.out.println( pwdEncrypt("Pass1234"));
	}
}
